{{define "content"}}

    <div id="main">

        <!-- 面包屑导航 -->
        <div id="bread" class="box list sky-blue">
            <span class="left">
                <a href="/">{{.Gobbs.title}}</a>
				   <img src="/images/divider.gif" /> {{.ForumRoot.Name}}
				   <img src="/images/divider.gif" /> <a href="/forum/{{.Forum.Fid}}">{{.Forum.Name}}</a>
            </span>
        </div>

        <!-- 发布新帖子 -->
        <div class="list">
            <h4 class="block_sub">发表帖子</h4>
            <div class="post_table mainbox">
                <form id="form1" name="form1" method="post" action="/forum/post?fid={{.Forum.Fid}}&act=do">
                <table>
                    <tbody>
                        <tr>
                            <td class="npostl">板块</td>
                            <td class="npostr">
                                {{.Forum.Name}}
                            </td>
                        </tr>
                    </tbody>
                    <tbody>
                        <tr>
                            <td class="npostl">标题</td>
                            <td class="npostr">
                                <span class="txt" style="display:block; width:96px; height:16px; *height:18px; _height:18px; margin:1px 5px 0 0; float:left; overflow:hidden;">
								<select name="sortid" style="margin:-2px; width:100px;">
									<option value="0" selected>未分类...</option>
									{{range .SortTop}}
									<option value="{{.Sortid}}">{{.Name}}</option>
									{{end}}
								</select>
                                </span>
                                <input class="npost-subject txt" type="text" name="subject" />
                                <em>(必填)</em>
                            </td>
                        </tr>
                    </tbody>
                    <tbody>
                        <tr>
                            <td class="npostl">主题图标</td>
                            <td class="npostr">
                                <ul class="npost-icon">
                                    <li> <input type="radio" name="icon" value="1" checked> <img src="/images/icon/1.gif"></li>
                                    <li><input type="radio" name="icon" value="2"> <img src="/images/icon/2.gif"></li>
                                    <li><input type="radio" name="icon" value="3"> <img src="/images/icon/3.gif"></li>
                                    <li><input type="radio" name="icon" value="4"> <img src="/images/icon/4.gif"></li>
                                    <li><input type="radio" name="icon" value="5"> <img src="/images/icon/5.gif"></li>
                                    <li><input type="radio" name="icon" value="6"> <img src="/images/icon/6.gif"></li>
                                    <li><input type="radio" name="icon" value="7"> <img src="/images/icon/7.gif"></li>
                                    <li><input type="radio" name="icon" value="8"> <img src="/images/icon/8.gif"></li>
                                    <li><input type="radio" name="icon" value="9"> <img src="/images/icon/9.gif"></li>
                                    <li><input type="radio" name="icon" value="10"> <img src="/images/icon/10.gif"></li>
                                    <li><input type="radio" name="icon" value="11"> <img src="/images/icon/11.gif"></li>
                                    <li><input type="radio" name="icon" value="12"> <img src="/images/icon/12.gif"></li>
                                    <li><input type="radio" name="icon" value="13"> <img src="/images/icon/13.gif"></li>
                                    <li><input type="radio" name="icon" value="14"> <img src="/images/icon/14.gif"></li>
                                </ul>
                            </td>
                        </tr>
                    </tbody>
                    <tbody>
                        <tr>
                            <td class="npostl">
                                <fieldset class="postrules">
                                    <legend>选项</legend>
                                    <dl>
                                        <dd><input type="checkbox" name="allowbbcode" value="1" {{if eq .UserGroup.Allowubbcode 0 }}disabled{{end}} checked>使用Markdown</dd>
                                        <dd><input type="checkbox" name="usesig" value="1" {{if eq .Group.Allowsig 0 }}disabled{{end}} checked />使用我的签名</dd>
                                        <dd><input type="checkbox" name="isanonymous" value="1" {{if eq .Group.Allowanonymous 0 }}disabled{{end}}/>使用匿名发帖</dd>
                                        <dd><input type="checkbox" name="readreply" value="1"  {{if eq .Group.Allowpostreply 0 }}disabled{{end}} />隐藏此帖(回复可见)</dd>
                                    </dl>
                                </fieldset>
                            </td>
                            <td class="npostr">
                                <div class="npost-txtarea">


<link rel="stylesheet" type="text/css" href="/scripts/md/markdown.css" />

<script type="text/javascript" src="/scripts/md/Markdown.Converter.js"></script>
<script type="text/javascript" src="/scripts/md/Markdown.Sanitizer.js"></script>
<script type="text/javascript" src="/scripts/md/Markdown.Editor.js"></script>

<div class="wmd-panel">
    <div id="wmd-button-bar"></div>
    <textarea class="wmd-input" id="wmd-input" name="elm1" >
    </textarea>
</div>
    <div id="wmd-preview" class="wmd-panel wmd-preview mdcontent"></div>
<script type="text/javascript">
	(function () {
		var converter1 = Markdown.getSanitizingConverter();
		var editor1 = new Markdown.Editor(converter1);
		editor1.run();
	})();
</script>

<!--<textarea name="elm1" id="elm1" style="height:250px; overflow-y:auto;width: 100%"  rows="12" cols="80" ></textarea>-->
        
                                </div>
                                
                                <fieldset class="npost-cat fieldset">
                                    <legend>帖子类型</legend>
                                    <p><input type="radio" name="type" class="radio" value="thread" checked>普通主题</p>
                                    <p><input type="radio" name="type" class="radio" value="level" {{if eq .Group.Allowpostlevel 0 }}disabled{{end}} />阅读权限<input class="txt" type="text" name="readlevel" size="5" value="10" {{if eq .Group.Allowpostlevel 0 }}disabled{{end}}>只有当会员所在群组高于此限制才可以阅读，0或空为不限制</p>
                                    <p><input type="radio" name="type" class="radio" value="order"  {{if eq .Group.Allowpostorder 0 }}disabled{{end}} />出售主题<input class="txt" type="text" name="readorder" size=5 value="1" {{if eq .Group.Allowpostorder 0 }}disabled{{end}} >只有当会员付出此积分后才可以阅读</p>
                                    <p><input type="radio" name="type" class="radio" value="ask" {{if eq .Group.Allowpostask 0 }}disabled{{end}} />悬赏主题<input class="txt" type="text" name="askprice" size=5 value="10" {{if eq .Group.Allowpostask 0 }}disabled{{end}} >当有人回答您的问题后，你需要向对方支付此积分</p>
                                </fieldset>
                                <!--
								{{if eq .Group.Allowupload 1 }}
                                <fieldset class="npost-upload fieldset">
                                    <legend>上传附件</legend>
                                    <p>描述<input class="txt" type="text" name="filename[]" size="10">
                                    <input class="upload txt" style="border:1px;" type="file" id="fileup" name="fileup[]" />
                                    <input type="checkbox" name="filereply[]" value="1"/> 隐藏附件(回复可见)
                                    <input type="checkbox" name="fileorder[]" value="credit"/>售<input class="minitxt txt" type="text"  name="filecredit[]" />积分</p>
                                    <p>上传文件必须小于({{.Group.Maxupload}})KB <br />上传允许类型：{{.Uploadtype}} </p>
                                </fieldset>
								{{end}}
								-->
                                <div class="npost-submit">
									<input type="hidden" name="fid" value="{{.Forum.Fid}}">
                                    <input class="submit" type="submit" value="发表主题" />
                                </div>
                                <div class="npost-rules">
                                    <blockquote class="gray">
                                        这里发帖，表示您接受了谷丝的 用户行为准则。<br />
                                        请您对您的言行负责，并遵守中华人民共和国有关法律、法规,尊重网上道德。
                                    </blockquote>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                </form>
            </div>
        </div>

    </div>
{{end}}

